﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LandingPlan
{
    /// <summary>
    /// 项目信息变更类型
    /// </summary>
    internal class ProjectChangeTypeConst
    {
        #region Const
        /// <summary>
        /// 项目名称
        /// </summary>
        public const string ProjName = "01";

        /// <summary>
        /// 项目负责人
        /// </summary>
        public const string LPersonId = "02";

        /// <summary>
        /// 项目年限
        /// </summary>
        public const string ProjDuration = "03";

        /// <summary>
        /// 所属部门
        /// </summary>
        public const string DeptCode = "04";

        /// <summary>
        /// 所属部门领导职位
        /// </summary>
        public const string DPositionCode = "05";

        /// <summary>
        /// 职能部门
        /// </summary>
        public const string CtrlDeptCode = "06";

        /// <summary>
        /// 职能部门领导职位
        /// </summary>
        public const string CLPositionCode = "07";

        /// <summary>
        /// 项目转交
        /// </summary>
        public const string ProjDeliver = "08";

        #endregion

        public static readonly Dictionary<string, string> Names = new Dictionary<string, string>()
        {
            {ProjName, "项目名称"},
            {LPersonId, "项目负责人"},
            //{ProjDuration, "项目年限"},
            {DeptCode, "所属部门"},
            {DPositionCode, "所属部门领导职位"},
            {CtrlDeptCode, "职能部门"},
            {CLPositionCode, "职能部门领导职位"},
            {ProjDeliver, "项目转交"}
        };

        /// <summary>
        /// 常量列表
        /// </summary>
        /// <returns></returns>
        public static string[] GetAllKeys()
        {
            return Names.Keys.ToArray();
        }

        public static string GetName(string key)
        {
            return key == null || !Names.ContainsKey(key) ? string.Empty : Names[key];
        }

        public static List<KeyValuePair<string, string>> GetList()
        {
            return Names.ToList();
        }
    }
}
